//
//  TDatePickerView.h
//  TDatePicker
//
//  ITUIHelper
//
//  Created by txj on 2017/3/23.
//  Copyright © 2017年 hs. All rights reserved.
//

//

#import <UIKit/UIKit.h>

typedef enum{
    TDateStyleShowYearMonthDayHourMinute  = 0,
    TDateStyleShowMonthDayHourMinute,
    TDateStyleShowYearMonthDay,
    TDateStyleShowMonthDay,
    TDateStyleShowHourMinute
    
}TDateStyle;

typedef enum{
    TDateTypeStartDate,
    TDateTypeEndDate
    
}TDateType;

@interface TDatePickerView : UIView

@property (nonatomic,assign)TDateStyle datePickerStyle;
@property (nonatomic,assign)TDateType dateType;
@property (nonatomic,strong)UIColor *themeColor;
@property (nonatomic,assign)NSInteger labelPosition;
@property (nonatomic,assign)NSInteger cornerRadius;

@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间（没有设置默认2049）
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间（没有设置默认1970）


-(instancetype)initWithCompleteBlock:(void(^)(NSDate *selectDate))completeBlock;
//-(instancetype)initWithLimitMinDate:(NSDate *)minDate limitMaxDate:(NSDate *)maxDate   CompleteBlock:(void(^)(NSDate *selectDate))completeBlock;

-(void)show;


@end
